import request from '@/utils/request'

// 查询人才咖啡列表
export function listCoffee(query) {
  return request({
    url: '/talent/coffee/list',
    method: 'get',
    params: query
  })
}

// 查询人才咖啡详细
export function getCoffee(talentCoffeeId) {
  return request({
    url: '/talent/coffee/' + talentCoffeeId,
    method: 'get'
  })
}

// 新增人才咖啡
export function addCoffee(data) {
  return request({
    url: '/talent/coffee',
    method: 'post',
    data: data
  })
}

// 修改人才咖啡
export function updateCoffee(data) {
  return request({
    url: '/talent/coffee',
    method: 'put',
    data: data
  })
}

// 删除人才咖啡
export function delCoffee(talentCoffeeId) {
  return request({
    url: '/talent/coffee/' + talentCoffeeId,
    method: 'delete'
  })
}
